Skip to content

Conversation

@chelcassanova
Copy link
Contributor

Disabling the lldb-rpc-gen tool while issues with certain builds are solved: #148996

@llvmbot
Copy link
Member

llvmbot commented Jul 25, 2025

@llvm/pr-subscribers-lldb

Author: Chelsea Cassanova (chelcassanova)

Changes

Disabling the lldb-rpc-gen tool while issues with certain builds are solved: #148996


Full diff: https://github.com/llvm/llvm-project/pull/150699.diff

1 Files Affected:

  • (modified) lldb/cmake/modules/LLDBConfig.cmake (+2-2)
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 1bc494a48cb03..606639a3c5373 100644
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -329,7 +329,7 @@ endif()
 if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER)
   if ((CMAKE_CROSSCOMPILING OR LLVM_HOST_TRIPLE MATCHES "${LLVM_DEFAULT_TARGET_TRIPLE}") AND
       CMAKE_SYSTEM_NAME MATCHES "AIX|Android|Darwin|FreeBSD|Linux|NetBSD|OpenBSD|Windows")
-    set(LLDB_CAN_USE_LLDB_RPC_SERVER ON)
+    set(LLDB_CAN_USE_LLDB_RPC_SERVER OFF)
   else()
     set(LLDB_CAN_USE_LLDB_RPC_SERVER OFF)
   endif()
@@ -339,7 +339,7 @@ if (CMAKE_CROSSCOMPILING)
   set(LLDB_BUILD_LLDBRPC OFF CACHE BOOL "")
   get_host_tool_path(lldb-rpc-gen LLDB_RPC_GEN_EXE lldb_rpc_gen_exe lldb_rpc_gen_target)
 else()
-  set(LLDB_BUILD_LLDBRPC ON CACHE BOOL "")
+  set(LLDB_BUILD_LLDBRPC OFF CACHE BOOL "")
 endif()
 
 include(LLDBGenerateConfig)

@vvereschaka
Copy link
Contributor

vvereschaka commented Jul 25, 2025

@chelcassanova , you just completely disable RPC with there changes and there is no way to turn it ON.

I would like to propose using either option to enable/disable rpc-gen (LLDB_ENABLE_RPC_GEN as example) and rpc-server (LLDB_ENABLE_RPC_SERVER also as example.) or something like this:

if (NOT DEFINED LLDB_CAN_USE_LLDB_RPC_SERVER)
  set(LLDB_CAN_USE_LLDB_RPC_SERVER OFF)
endif()

if (NOT DEFINED LLDB_BUILD_LLDBRPC)
  set(LLDB_BUILD_LLDBRPC  OFF)
endif()

(with additional checks inside of these conditions if necessary).

The second variant could be optimal as a quick fix.

@chelcassanova chelcassanova force-pushed the disable-rpc-gen-tool branch from cd91a8c to 9890570 Compare July 25, 2025 21:58
Copy link
Member

@mstorsjo mstorsjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is the best/nicest fix, but it works for unbreaking my builds, so thanks!

@chelcassanova chelcassanova force-pushed the disable-rpc-gen-tool branch from 9890570 to e2aeab7 Compare July 25, 2025 22:13
Disabling the lldb-rpc-gen tool while issues with certain builds are
solved: llvm#148996
@chelcassanova chelcassanova force-pushed the disable-rpc-gen-tool branch from e2aeab7 to 5b3bf87 Compare July 25, 2025 22:16
Copy link
Contributor

@vvereschaka vvereschaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@chelcassanova chelcassanova merged commit 67b5195 into llvm:main Jul 25, 2025
8 of 9 checks passed
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
Disabling the lldb-rpc-gen tool while issues with certain builds are
solved: llvm#148996
JDevlieghere pushed a commit to swiftlang/llvm-project that referenced this pull request Sep 11, 2025
Disabling the lldb-rpc-gen tool while issues with certain builds are
solved: llvm#148996

(cherry picked from commit 67b5195)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants